package com.samoiloff.ui.btns.frame {
	import com.slavshik.utils.Fonts;

	import flash.display.MovieClip;
	import flash.text.TextField;

	/**
	 * @author NM Group
	 */
	public class FrameTextBtnController extends FrameBtnController {
		
		protected var _iconMc:MovieClip;
		protected var _tf:TextField;
		
		public function FrameTextBtnController(mc: MovieClip) {
			super(mc);
			_iconMc = _mc.iconMc;
			_tf = _mc.tf;
			if (_tf) {
				Fonts.getInstance().applyTfTextFormat(_tf);
			}
		}
		
		public function set text(text:String):void {
			_tf.text = text;
		}
		
		public function set iconVisible(iconVisible:Boolean):void {
			_iconMc.visible = iconVisible;
		}
	}
}
